/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package exercicio13;

/**
 *
 * @author Caio
 */
public class Exercicio13 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
      CompositeElement root = new CompositeElement("Picture");
      
      root.add(new PrimitiveElement("Red line"));
      root.add(new PrimitiveElement("Blue circle"));
      root.add(new PrimitiveElement("Green Box"));    
      
      CompositeElement comp = new CompositeElement("Two Circles;");
      comp.add(new PrimitiveElement("Black Circle"));
      comp.add(new PrimitiveElement("white Circle"));
      root.add(comp);
      
      PrimitiveElement pe = new PrimitiveElement ("Yellow Line");
      root.add(pe);
      root.remove(pe);
      
      root.Display(1);
     
    }
    
}
